package com.ld.security.auth.sdk;

import cn.hutool.core.lang.Console;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TetsApi {


    @RequestMapping(value = "/getHtml",method = RequestMethod.GET)
    public Object getHtml(){
        Object v =  SecurityContextHolder.getContext().getAuthentication();

        Console.log(v.getClass());

        return v;
    }

}
